import Content from '@/sheep/layouts/content.vue';
import { request } from '@/sheep/request';
import { SELECT, RECYCLE_BIN, CRUD, RECYCLE } from '@/sheep/request/crud';

const route = {
  path: 'examine',
  name: 'shop.admin.examine',
  component: Content,
  meta: {
    title: '商品管理',
  },
  children: [
    {
      path: 'expert',
      name: 'shop.admin.examine.expert',
      component: () => import('./expert/index.vue'),
      meta: {
        title: '达人审核',
      },
    },
    {
      path: 'goods',
      name: 'shop.admin.examine.goods',
      component: () => import('./goods/index.vue'),
      meta: {
        title: '商品任务审核',
      },
    },
    {
      path: 'real',
      name: 'shop.admin.examine.real',
      component: () => import('./real/index.vue'),
      meta: {
        title: '实探审核',
      },
    },
    {
      path: 'tv',
      name: 'shop.admin.examine.tv',
      component: () => import('./tv/index.vue'),
      meta: {
        title: '电商视频审核',
      },
    },
   
   
  ],
};

const api = {
  daren:{
    list: (params) =>
      request({
        url: `daren/admin/daren/list`,
        method: 'GET',
        params,
      }),
    detail: (params) =>
      request({
        url: `daren/admin/daren/detail`,
        method: 'GET',
        params,
      }),
    // 审核
    statusEdit: (data) =>
      request({
        url: 'daren/admin/daren/statusEdit',
        method: 'POST',
        data,
      }),
  },
  goods:{
    ...CRUD('daren/admin/job', ['list', 'detail']),
    // 审核
    statusEdit: (data) =>
      request({
        url: '/daren/admin/job/statusEdit',
        method: 'POST',
        data,
      }),
  },
  real:{
    ...CRUD('daren/admin/probe_job', ['list', 'detail']),
    // 审核
    statusEdit: (data) =>
      request({
        url: '/daren/admin/probe_job/statusEdit',
        method: 'POST',
        data,
      }),
  },
  raise:{
   
    
    list: (params) =>
      request({
        url: `shop/admin/crowd/list`,
        method: 'GET',
        params,
      }),
    
    
    detail: (id) =>
      request({
        url: `shop/admin/crowd/details/`+id,
        method: 'GET',
      }),
    
    
    upStatus: (data) =>
      request({
        url: 'shop/admin/crowd/upStatus',
        method: 'POST',
        data,
      }),
  },
 
};

export { route, api };
